#pragma once

typedef unsigned long Item;

#define MAX 10

void visit_Item(Item&);

class List
{
public:
	List();
	~List();
	bool addItem(const Item& item);
	bool isEmpty()const;
	bool isFull()const;
	void visit(void (*p)(Item&))const;

private:
	Item* addr;
	int length;
	int capacity;
};

